package com.example.springbootxxl.jobhandler;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;

import org.springframework.stereotype.Component;

@Component
public class testHandler {
    /**
     * 5、生命周期任务示例：任务初始化与销毁时，支持自定义相关逻辑；
     */
    @XxlJob(value = "testJobHandler")
    public ReturnT<String> testJobHandler(String param) throws Exception {
        System.out.println("调用定时任务！");
        return ReturnT.SUCCESS;
    }
//    public void init(){
//        Logger.info("init");
//    }
//    public void destroy(){
//        logger.info("destory");
//    }

}
